package com.cwf.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cwf.system.entity.Permission;
import com.cwf.system.vo.PermissionTreeVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Permission)表服务接口
 *
 * @author makejava
 * @since 2023-02-15 15:49:36
 */
@Service
public interface PermissionService extends IService<Permission> {



    /**
     * @return
     * @description 获取所有权限树结构
     * @author 18068
     * @date 2023/2/16 19:16
     */
    List<PermissionTreeVO> getPermissionTreeVO(Permission permission);

    List<PermissionTreeVO> getAllPermissionTree();


    Permission byIdGetPermissionInfo(Integer id);

    boolean add(Permission permission);


    boolean update(Permission permission);

    boolean delete(Integer id);

}

